package com.example.demo.controller;

import com.example.demo.service.DcClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: xie
 * Email: 1487471733@qq.com
 * Date: 2017/7/4
 * Time: 16:00
 * Describe:
 */
@RestController
public class DcController {
    @Autowired
    DcClient dcClient;

    @GetMapping("/consumer")
    public String dc() {
        return dcClient.consumer();
    }
}
